<!DOCTYPE html >
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Tasks</title>
</head>
<body>
<h1>Tasks List</h1>
<div>
    <h2>unCompleted</h2>
    <ul>
        @foreach($unCompletedTasks as $task)
            <li>
                <a href="{{url('tasks',[$task->id])}}">{{$task->name}}</a>
            </li>
        @endforeach
    </ul>
</div>
<div>
    <h2>completed</h2>
    <ul>
        @foreach($completedTasks as $task)
            <li>
                <a href="{{url('tasks',[$task->id])}}">{{$task->name}}</a>
            </li>
        @endforeach
    </ul>
</div>
</body>
</html>